#include <iostream>
#include <cstring>

using namespace std;

void charReserve(char *str)
{
	char* sstart = str;
	char* send = sstart+strlen(str)-1;

	while(sstart != send)
	{
		char temp = *sstart;
		*sstart = *send;
		*send = temp;


		sstart++;
		send--;
	}

}
int main()
{
	char* str = "i love china very much";
	cout<<str<<endl;
	charReserve(str);
	cout<<str<<endl;
	return 0;
}
